package com.wpml.oss.config;

import lombok.Data;
import lombok.ToString;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: wp
 * @date: 2019-09-02 10:43
 **/
@Data
@ToString
@Component
public class OssProperties implements InitializingBean {

    @Value("${oss.accessKeyId}")
    private String accessKeyId;

    @Value("${oss.accessKeySecret}")
    private String accessKeySecret;

    @Value("${oss.bucketName}")
    private String bucketName;

    @Value("${oss.endpoint}")
    private String endpoint;

    @Override
    public void afterPropertiesSet() throws Exception {

    }
}
